package array.others;

public class ConstructArr {
    public int[] constructArr(int[] a) {
        int ji = 1;
        for (int i : a) {
            if (i != 0) ji *= i;
        }
        for (int i = 0; i < a.length; ++i)
            a[i] = ji / a[i];

        return a;
    }
}
